// 操作token的共用文件
const TOKEN_KEY = 'geek-token';

// 获取token
const getToken = () => {
  return localStorage.getItem(TOKEN_KEY);
};

// 设置token
const setToken = (token) => {
  localStorage.setItem(TOKEN_KEY, token);
};

// 删除token
const removeToken = () => {
  localStorage.removeItem(TOKEN_KEY);
};

export { getToken, setToken, removeToken };
